package com.mc.fil.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.mc.fil.mapper.FilUserRelationMapper;
import com.mc.fil.domain.FilUserRelation;
import com.mc.fil.service.IFilUserRelationService;

/**
 * 采种田人员关系 Service业务层处理
 *
 * @author mc
 * @date 2021-04-15
 */
@Service
public class FilUserRelationServiceImpl implements IFilUserRelationService
{
    @Autowired
    private FilUserRelationMapper filUserRelationMapper;

    /**
     * 查询采种田人员关系
     *
     * @param id 采种田人员关系 ID
     * @return 采种田人员关系
     */
    @Override
    public FilUserRelation selectFilUserRelationById(Long id)
    {
        return filUserRelationMapper.selectFilUserRelationById(id);
    }

    /**
     * 查询采种田人员关系 列表
     *
     * @param filUserRelation 采种田人员关系
     * @return 采种田人员关系
     */
    @Override
    public List<FilUserRelation> selectFilUserRelationList(FilUserRelation filUserRelation)
    {
        return filUserRelationMapper.selectFilUserRelationList(filUserRelation);
    }

    /**
     * 新增采种田人员关系
     *
     * @param filUserRelation 采种田人员关系
     * @return 结果
     */
    @Override
    public int insertFilUserRelation(FilUserRelation filUserRelation)
    {
        return filUserRelationMapper.insertFilUserRelation(filUserRelation);
    }

    /**
     * 修改采种田人员关系
     *
     * @param filUserRelation 采种田人员关系
     * @return 结果
     */
    @Override
    public int updateFilUserRelation(FilUserRelation filUserRelation)
    {
        return filUserRelationMapper.updateFilUserRelation(filUserRelation);
    }

    /**
     * 批量删除采种田人员关系
     *
     * @param ids 需要删除的采种田人员关系 ID
     * @return 结果
     */
    @Override
    public int deleteFilUserRelationByIds(Long[] ids)
    {
        return filUserRelationMapper.deleteFilUserRelationByIds(ids);
    }

    /**
     * 删除采种田人员关系 信息
     *
     * @param filId 采种田人员关系 ID
     * @return 结果
     */
    @Override
    public int deleteFilUserRelationById(String filId)
    {
        return filUserRelationMapper.deleteFilUserRelationById(filId);
    }
}